# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hostbox-ssh
pkgver=0.1.1
pkgrel=6
groups=('blackarch' 'blackarch-cracker' 'blackarch-scanner')
pkgdesc='A ssh password/account scanner.'
arch=('any')
url='http://stridsmanit.wordpress.com/2012/12/02/brute-forcing-passwords-with-hostbox-ssh-0-1-1/'
license=('GPL')
depends=('python2' 'python2-paramiko' 'wxpython')
source=("https://dl.packetstormsecurity.net/UNIX/scanners/HostBox-$pkgver.tar.gz"
        'blackarch.patch')
sha512sums=('dbac94a491e8e8c08e1075e5b12bb196781bea1c33e56d0ffe38c5bcf90e5ce1add80dd1943a24605cc754242a6c844fe612f80e44a76cb426b934e7125c0c6a'
            'cefed91f3b19b1bc6514f62a1a68700ccd356ce0bc10ed59110391a68dc24bdde825a9d2adf756e02aa4a7781db8f025343ef3f3017ad11bfb5b6e5c65cd40e9')

prepare() {
  patch -p0 < blackarch.patch
}

package() {
  install -Dm 755 HostBox-SSH.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" INSTALL
}

